package com.business_clean.ui.adapter.project;

import com.business_clean.R;
import com.business_clean.data.mode.custom.CustomMangerList;
import com.business_clean.data.mode.project.ProjectMangerList;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

public class ProjectAdapter extends BaseQuickAdapter<ProjectMangerList, BaseViewHolder> {

    public ProjectAdapter() {
        super(R.layout.item_project);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder holder, ProjectMangerList item) {
        holder.setText(R.id.tv_item_project_title, item.getProject_name())
                .setText(R.id.tv_item_project_contract_num, "立项" + item.getContract_human_num() + "人")
                .setText(R.id.tv_item_project_job_num, "定岗" + item.getTotal_job_num() + "人")
                .setText(R.id.tv_item_project_on_job_num, "在岗" + item.getOn_job_num() + "人");

    }
}
